package com.chuangdun.flutter.plugin.alarm

data class AlarmModel(
    var id: Long?,
    val alarmId: String,
    val tag: String,
    val date: String?,
    val hour: Int,
    val minute: Int,
    val title: String,
    val body: String,
    val repeating: Boolean
) {

    /**
     * 将AlarmModel对象转换为Map
     */
    fun toMap(): Map<String, Any?> {
        return mapOf(
            "id" to id,
            "alarm_id" to alarmId,
            "tag" to tag,
            "date" to date,
            "hour" to hour,
            "minute" to minute,
            "title" to title,
            "body" to body,
            "repeating" to repeating
        )
    }
}


